package com.tom.architect02.ui10.day09;

import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;

/**
 * Added by Tom on 2024/06/07.
 */
public abstract class BaseAdapter {
    public abstract int getCount();
    // 通过pos，获取View。
    public abstract View getView(int position, ViewGroup parent);

    // 观察者模式，及时通知更新UI。参考ListView
    public void unregisterDataSetObserver(DataSetObserver observer) {
    }
    public void registerDataSetObserver(DataSetObserver observer) {
    }
}
